#include "GamePlay.h"
GamePlay::GamePlay(HINSTANCE hInstance,HWND wndHandle)
{
	graphic=new Graphic;
	graphic->InitDevice(wndHandle);
	re_window=new Register_Window(hInstance);
	re_window->InitWindow();
}
void GamePlay::GameRun()
{
	MSG msg; 
    ZeroMemory( &msg, sizeof(msg) );
    while( msg.message!=WM_QUIT )
    {
		if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
        {
			TranslateMessage( &msg );
            DispatchMessage( &msg );
        }
		else
		{
			// call our render function
			//Render();
		}
    }
}
void GamePlay::GameEnd()
{
	graphic->Release();
	delete graphic;
	delete re_window;
}